import { Component, OnInit
  , AfterViewInit
  , ViewChild
  , Renderer
  , ElementRef } from '@angular/core';
import {NgbModal, NgbActiveModal} from '@ng-bootstrap/ng-bootstrap';

@Component({
  selector: 'app-model-input',
  templateUrl: './model-input.component.html',
  styleUrls: ['./model-input.component.scss']
})
export class ModelInputComponent implements OnInit, AfterViewInit {
  ngAfterViewInit(): void {
    this.renderer.invokeElementMethod(this.input.nativeElement, 'focus');
  }

  constructor(public activeModal: NgbActiveModal, private renderer: Renderer) { }

  @ViewChild('inputValue') input: ElementRef;

  ngOnInit() {
  }

}
